//
//  XMGRefreshHeader.m
//  01-BuDeJie
//
//  Created by xmg on 16/1/31.
//  Copyright © 2016年 xiaomage. All rights reserved.
//

#import "XMGRefreshHeader.h"

@interface XMGRefreshHeader()
@property (nonatomic, weak) UIImageView *logoView;
@end

@implementation XMGRefreshHeader

/**
 *  初始化
 */
- (void)prepare
{
    [super prepare];
    
    // 自动切换透明度
    self.automaticallyChangeAlpha = YES;
    // 隐藏时间
    //    self.lastUpdatedTimeLabel.textColor = [UIColor colorWithRed:0.0/255.0 green:169.0/255.0  blue:254.0/255.0 alpha:0.98];
    // 修改状态文字的颜色
//        self.stateLabel.textColor = [UIColor colorWithRed:0.0/255.0 green:169.0/255.0  blue:254.0/255.0 alpha:0.98];
    // 修改状态文字
    //    [self setTitle:@"赶紧再下拉" forState:MJRefreshStateIdle];
    ////    [self setTitle:@"松开🐴上刷新" forState:MJRefreshStatePulling];
    //    [self setTitle:@"松开马上刷新" forState:MJRefreshStatePulling];
    //    [self setTitle:@"正在玩命刷新中..." forState:MJRefreshStateRefreshing];
    
    // 添加logo
    //    UIImageView *logoView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"loginb"]];
    
    //    [self addSubview:logoView];
    //    self.logoView = logoView;
    
//    self.stateLabel.textColor =  [UIColor purpleColor];
//    self.lastUpdatedTimeLabel.textColor = [UIColor purpleColor];
    self.stateLabel.font = MYFONT(15);
    self.lastUpdatedTimeLabel.font = MYFONT(15);
    self.stateLabel.textColor = themeColor;
    self.lastUpdatedTimeLabel.textColor = themeColor;

}

/**
 *  摆放子控件
 */
- (void)placeSubviews
{
    [super placeSubviews];
    
    //    self.logoView.width_zm = KScreenW;
    //    self.logoView.height_zm = KScreenW/16.0 * 9;
    //
    //    self.logoView.centerX_zm = self.width_zm * 0.5;
    //    self.logoView.y_zm = - self.logoView.height_zm;
}

@end
